lyon_path 0.15.2

Types and utilities to store, build and iterate over 2D paths.
Documentation
Data structures and traits to work with paths (vector graphics). To build and consume paths, see the [builder](builder/index.html) and [iterator](iterator/index.html) modules. This crate is reexported in [lyon](https://docs.rs/lyon/). # Examples ``` # extern crate lyon_path; # fn main() { use lyon_path::Path; use lyon_path::math::{point}; use lyon_path::builder::*; // Create a builder object to build the path. let mut builder = Path::builder(); // Build a simple path. let mut builder = Path::builder(); builder.move_to(point(0.0, 0.0)); builder.line_to(point(1.0, 2.0)); builder.line_to(point(2.0, 0.0)); builder.line_to(point(1.0, 1.0)); builder.close(); // Generate the actual path object. let path = builder.build(); for event in &path { println!("{:?}", event); } # } ```